﻿using Flurl;
using Flurl.Http;
using System.Collections.Generic;
using System;

namespace FlurlTest
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            var ret = "http://openapi.bczp.cn"
                .AppendPathSegment("api/Auth/GetToken")
                .SetQueryParams(new { username = "ynzp", userpwd = "KtPjIa3TTazp" })
                .GetJsonAsync<Dictionary<string, object>>().Result;


        }
    }
}
